package com.travel.util;

import java.util.HashMap;
import java.util.Map;

public class JsonResult {
    public static Map<String, Object> getSuccessResult(String message, Object obj) {
        Map<String, Object> result = new HashMap<>();
        result.put("status", true);
        result.put("message", message);
        result.put("res", obj);
        return result;
    }

    public static Map<String, Object> getErrorResult(String message, Object obj) {
        Map<String, Object> result = new HashMap<>();
        result.put("status", false);
        result.put("message", message);
        result.put("res", obj);
        return result;
    }
}
